<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style type="text/css">
	div 
        {
            color: red;
	}
        </style>
        <script type="text/javascript" src="jquery.js"></script>
        <script>
            $(document).ready(function(){
                $("li div.roster-contact").append("<div class='status'>online</div>");
                $("li").each(function(){
                    console.log($(this).toString());
                })
                
            });
        </script>
    </head>
    <body>
        <ul>
            <li id='myjid1'>
                <div class='roster-contact offline'>
                    <div class='roster-name'>name</div> 
                    <div class='roster-jid'>jid1</div>
                 </div>
            </li>
            <li id='myjid2'>
                <div class='roster-contact offline'>
                    <div class='roster-name'>name</div> 
                    <div class='roster-jid'>jid2</div>
                 </div>
            </li>            
        </ul>
    </body>
</html>
